import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../AppConfig/Config.dart';

class TMSChooseDriver extends StatefulWidget {
  const TMSChooseDriver({super.key});

  @override
  State<TMSChooseDriver> createState() => _TMSChooseDriverState();
}

class _TMSChooseDriverState extends State<TMSChooseDriver> {
  @override
  Widget build(BuildContext context) {
    final screenSize = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: MyColors.backgreyColor,
      appBar: AppBar(
        leading: IconButton(icon: Icon(Icons.arrow_back_ios,color: Colors.black,),onPressed: (){Navigator.pop(context);},),
        centerTitle: true,
        backgroundColor: Colors.white,
        title: Text("承运司机",style: TextStyle(color: Colors.black,fontSize: 16.sp,fontWeight: FontWeight.w300),),
      ),
      body: ListView(
        children: [
          Container(
            color: Colors.white,
            padding: EdgeInsets.only(top: 8.h,bottom: 8.h),
            child:   Row(
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                Container(
                  margin: EdgeInsets.only(top: 8.h,left: 10.w,right: 10.w),
                  height: 35.h,
                  width: screenSize.width-100.w,
                  decoration: BoxDecoration(
                      borderRadius: BorderRadius.all(Radius.circular(30))),
                  child:   TextField(
                    decoration: InputDecoration(
                      hintText: '请输入姓名或手机号',
                      hintStyle:TextStyle(fontSize: 14.sp,color: MyColors.textColor),
                      filled: true,
                      fillColor:MyColors.backgreyColor,
                      border: InputBorder.none,
                      alignLabelWithHint: true,
                      // contentPadding: EdgeInsets.symmetric(vertical: 10.0.h, horizontal: 10.0.w),
                    ),
                    textAlign: TextAlign.left,
                    style: TextStyle(color: Colors.black),
                    onChanged: (value) {
                      setState(() {


                      });
                    },
                  ),
                ),
                SizedBox(width: 10.w,),
                GestureDetector(
                  child: Text("查询",style: TextStyle(color: MyColors.themeColor,fontSize: 16.sp),),
                )
              ],
            ) ,
          ),

      
        ],
      ),
    );
  }
}
